/**
 * Copyright (c) 2009  Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.jtalk.ui.login;

import static it.uniba.di.cdg.penelope.presenterfirst.TestHelpers.mockDependency;
import it.uniba.di.cdg.jtalk.IApplicationFacade;
import it.uniba.di.cdg.penelope.ui.mvp.databinding.IDataBindingService;

import org.eclipse.ecf.core.IContainer;
import org.osgi.service.event.EventAdmin;
import org.osgi.service.log.LogService;

import com.google.inject.AbstractModule;

/**
 * Default mocks when testing.
 */
public class DefaultMocksConfig extends AbstractModule {

	/* (non-Javadoc)
	 * @see com.google.inject.AbstractModule#configure()
	 */
	@Override
	protected void configure() {
		// Connection mocks
		mockDependency( binder(), IContainer.class );
		
		// Standard infrastructure
		mockDependency( binder(), LogService.class );
		mockDependency( binder(), EventAdmin.class );
//		mock( IWidgetFactory.class );
		
		mockDependency( binder(), IApplicationFacade.class );
		mockDependency( binder(), IDataBindingService.class );
	}
}
